package com.xc.h05.mapper;

import com.xc.h05.entity.Privatemessage;
import com.xc.h05.entity.Privatemessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 30658
* @description 针对表【privatemessage】的数据库操作Mapper
* @createDate 2025-03-07 19:54:45
* @Entity com.xc.h05.entity.Privatemessage
*/
@Mapper
public interface PrivatemessageMapper {

    //查询所有
    List<Privatemessage> findAll( );

    // 添加
    int add(Privatemessage privatemessage);
    //根据id删除
    int delete(Long id);
    // 根据id修改
    int update(Privatemessage privatemessage);
    //批量删除
    int deleteByIds(List<Long> ids2);
    //    // 根据** 分页查询
    List<Privatemessage> findByPage(Privatemessage privatemessage);
//根据咨询师id查询
    List<Privatemessage> findByCid(Integer cid);
}
